<?php
namespace app\admin\controller;
use think\Controller;
use think\Session;
class Logout extends Controller {
    function index(){
        Session::delete('user');
        $this->success('注销成功！');
    }
}